package com.ruge.system.pojo.entity;

import com.ruge.common.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;

/**
 * @author ：爱丽丝、如歌
 * @time ：2020/3/21  12:16
 * 描述 ： 操作日志
 */
@Getter
@Setter
@Entity
@ApiModel(value="操作日志")
public class SysLogOper extends BaseEntity {
    @ApiModelProperty(example="请求类型")
    @Column(columnDefinition = "varchar(100) COMMENT '请求类型'")
    private String method;
    @ApiModelProperty(example="请求参数")
    @Column(columnDefinition = "longtext COMMENT '请求参数'")
    private String requParam;
    @ApiModelProperty(example="返回结果")
    @Column(columnDefinition = "longtext  COMMENT '返回结果'")
    private String respParam;
    @ApiModelProperty(example="请求ip")
    @Column(columnDefinition = "varchar(100) COMMENT '请求ip'")
    private String ip;
    @ApiModelProperty(example="url")
    @Column(columnDefinition = "varchar(100) COMMENT 'url'")
    private String url;
    @ApiModelProperty(example="clazz")
    @Column(columnDefinition = "varchar(100) COMMENT 'clazz'")
    private String clazz;
    @ApiModelProperty(example="请求类型.方法")
    @Column(columnDefinition = "varchar(100) COMMENT '请求类型.方法'")
    private String classMethod;
    @ApiModelProperty(example="port")
    @Column(columnDefinition = "varchar(100) COMMENT 'port'")
    private Integer port;
    @ApiModelProperty(example="sessionId")
    @Column(columnDefinition = "varchar(100) COMMENT 'sessionId'")
    private String sessionId;
    @ApiModelProperty(example="方法执行时间")
    @Column(columnDefinition = "varchar(25) COMMENT '方法执行时间'")
    private String useTime;
    @ApiModelProperty(example="浏览器信息")
    @Column(columnDefinition = "varchar(100) COMMENT '浏览器信息'")
    private String browser;
    @ApiModelProperty(example="操作系统")
    @Column(columnDefinition = "varchar(100) COMMENT 'os'")
    private String os;
    @ApiModelProperty(example="国家")
    @Column(columnDefinition = "varchar(100) COMMENT '国家'")
    private String country;
    @ApiModelProperty(example="地区")
    @Column(columnDefinition = "varchar(100) COMMENT '地区'")
    private String area;
    @ApiModelProperty(example="省份")
    @Column(columnDefinition = "varchar(100) COMMENT '省份'")
    private String region;
    @ApiModelProperty(example="市区")
    @Column(columnDefinition = "varchar(100) COMMENT '市区'")
    private String city;
    @ApiModelProperty(example="地区")
    @Column(columnDefinition = "varchar(100) COMMENT '地区'")
    private String county;
    @ApiModelProperty(example="ISP公司")
    @Column(columnDefinition = "varchar(100) COMMENT 'ISP公司'")
    private String isp;

}
